-- GENERATED SPELL FOR [Shattered Rumbler] --


function spell0_17157(pUnit, Event) --@Earth Rumble,Self--
pUnit:FullCastSpellOnTarget(33840,pUnit)
pUnit:RegisterEvent('Sorts_17157', 8000, 1)
end

function Sorts_17157(pUnit, Event)
local choix_sorts_17157 = math.random(0, 0)
if choix_sorts_17157 == 0 then
pUnit:RegisterEvent('spell0_17157', 1, 1)
end
end

function mob17157_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17157', math.random(1500, 3000), 1)
end

function mob17157_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17157_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17157_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17157, 1, 'mob17157_Action')
RegisterUnitEvent(17157, 2, 'mob17157_Leave')
RegisterUnitEvent(17157, 3, 'mob17157_Kill')
RegisterUnitEvent(17157, 4, 'mob17157_Die')
